﻿using ImageManager.MyType;
using ImageManager.MyType.FieldType;

namespace ImageManager.Model
{
    [Serializable, MyTableName("T_USERRIGHT")]
    public class UserRightModel:BaseModel
    {
        [MyForeign(typeof(ModModel), nameof(ModModel.ModName))]
        public string Mod { get; set; }
        [MyForeign(typeof(UserModel), nameof(UserModel.UserName))]
        public string UserId { get; set; }
        public MyBoolean Read { get; set; }
        public MyBoolean Write { get; set; }
        public MyBoolean Remove { get; set; }
        public MyBoolean Approve { get; set; }
    }
}
